<div class="pageContent">
  <div class="pageFormContent" layoutH="56">  
  <div id="w_list_print">
  <table width="100%">
    <tr>
     <th colspan="2" align="center">
     <font style="font-size:22px;font-weight: bolder;">厦门俱佳工贸有限公司</font><br />
     <font style="font-size:18px; ">{$mainList.ordertype|getOrdertype}</font>
     </th>
    </tr>
    <tr>
     <th colspan="2" align="center">
     地址:厦门象屿五金机电城12-14　　电话:0592-8873605  　　传真:0592-6215929
     </th>
    </tr>
    <tr>
     <td width="80%" align="left">客 户：{$mainList.receivename|getTableColVal=Contacts,comname}</td>
     <td width="20%" align="left">单据编号：{$mainList.ordernumber}</td>
    </tr>
    <tr>
     <td width="80%" align="left">摘 要：{$mainList.remarks}</td>
     <td width="20%" align="left">单据日期：{$mainList.ordertime|date="Y 年 m 月 d 日",###}</td>
    </tr>
  </table>
  <table class="list" width="100%">
        <tr>
        <th align="center">編 號</th>
		<th align="center">费用类型</th>
		<th align="center">金 额(￥)</th>
        <th align="center">备 注</th>
     </tr>
     <volist id="vo" name="detailList">
			<tr target="sid_user" rel="{$vo['id']}">
				<td align="center">{$vo['ordersort']}</td>
                <td align="left">{$vo['costid']|getTableColVal=Costtypes,costname}</td>
                <td align="center"><neq name="vo['payamount']" value="0">{$vo['payamount']}</neq></td>  
                <td align="center">{$vo['rk2']}</td>            
			</tr>
     </volist>
     <tr>
				<td align="center"></td>
                <td align="left"></td>
				<td align="left"></td>
                <td align="center">&nbsp;</td>             
     </tr> 
     <tr>
				<td align="right" colspan="5">
                <if condition="$mainList.ordertype eq 1"> 应付金额： <elseif condition="$mainList.ordertype eq 7"/> 应收金额： </if>
                <neq name="mainList['payamount']" value="0">{$mainList.payamount}</neq>
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <if condition="$mainList.ordertype eq 6"> 实付金额： <elseif condition="$mainList.ordertype eq 7"/> 实收金额： </if>
                <neq name="mainList['payamount']" value="0">{$mainList.payamount}</neq>
                </td>             
     </tr> 
  </table>
  <table width="100%">
   <tr>
    <td width="25%">制单人：{$mainList.createuser|getTableColVal=User,nickname}</td>
    <td width="25%">经办人：{$mainList.orderuser|getTableColVal=User,nickname}</td>
    <td width="25%">审批人：</td>
   </tr>
   <tr>
    <td colspan="4" align="center">(&#9312;白联:留底&#9313;红联:客户&#9314;黄联:会计)</td>
   </tr>
  </table>
  </div>
  </div>
  <div class="formBar">
    <ul>        
		<li><div class="button"><div class="buttonContent"><button onclick="javascript:$.printBox('w_list_print')" type="button">打印单据</button></div></div></li>
		<li><div class="button"><div class="buttonContent"><button class="close" type="button">关闭</button></div></div></li>
	</ul>
	</div>
</div>


